-
Notifications
You must be signed in to change notification settings - Fork 274
fix(amazonq): prompt users to re-auth on invalid grant #5510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| refreshToken(project) | ||
| CodeTransformMessageListener.instance.onCheckAuth() | ||
| notifyStickyWarn( | ||
| message("codemodernizer.notification.warn.expired_credentials.title"), |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
| CodeTransformMessageListener.instance.onCheckAuth() | ||
| notifyStickyWarn( | ||
| message("codemodernizer.notification.warn.expired_credentials.title"), | ||
| message("codemodernizer.notification.warn.expired_credentials.content"), |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
| message("codemodernizer.notification.warn.expired_credentials.content"), | ||
| project, | ||
| listOf( | ||
| NotificationAction.createSimpleExpiring(message("codemodernizer.notification.warn.action.reauthenticate")) { |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
|
|
||
| class CodeModernizerBottomWindowPanelManager(private val project: Project) : JPanel(BorderLayout()) { | ||
| private var lastShownProgressPanel: Component? = null | ||
| private var progressPanel: Component? = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed just to fix a detekt issue further down about exceeding max line length
Types of changes
Description
When we get an
InvalidGrantExceptionwe should not be trying to refresh the token; rather, we should prompt the user to re-authenticate to Q.Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.